#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) Huoty, All rights reserved
# Author: Huoty <sudohuoty@163.com>
# CreateTime: 2021-07-17 19:07:46

from inspect import getdoc, cleandoc

class Obj(object):
    """类定义

    用来测试获取 cleandoc 的类型
    """

    def foo(self):
        """在定义一个方法来实时

        这里换了个行
            - a
            - b


        """


if  __name__ == "__main__":
    o = Obj()
    print(getdoc(Obj.foo))
    print(cleandoc(getdoc(Obj.foo)))
